import request from '/@/utils/request'
// 查询预置点管理列表
export function listYs7CamerasPresets(query:object) {
  return request({
    url: '/api/v1/system/ys7CamerasPresets/list',
    method: 'get',
    params: query
  })
}
// 查询预置点管理详细
export function getYs7CamerasPresets(id:number) {
  return request({
    url: '/api/v1/system/ys7CamerasPresets/get',
    method: 'get',
    params: {
      id: id.toString()
    }
  })
}
// 新增预置点管理
export function addYs7CamerasPresets(data:object) {
  return request({
    url: '/api/v1/system/ys7CamerasPresets/add',
    method: 'post',
    data: data
  })
}
// 修改预置点管理
export function updateYs7CamerasPresets(data:object) {
  return request({
    url: '/api/v1/system/ys7CamerasPresets/edit',
    method: 'put',
    data: data
  })
}
// 删除预置点管理
export function delYs7CamerasPresets(ids:number[]) {
  return request({
    url: '/api/v1/system/ys7CamerasPresets/delete',
    method: 'delete',
    data:{
      ids:ids
    }
  })
}
